<?php

namespace app\index\controller;

use app\common\controller\Frontend;

class Index extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function index()
    {
        //获取当前域名
        $url = request()->domain();
        if(strpos($url, 'sulamarketing') !== false || $url == 'http://www.sulamarketing.com/' || $url =='http://www.sulamarketing.com' || $url == 'http://sulamarketing.com/' || $url == 'http://sulamarketing.com'){
            //重定向
            $this->redirect("/wBkqLRDgar.php");
        }
        return $this->view->fetch();
    }

}
